#include<iostream>
#include<string>

using namespace std;

int main(){

	string s1="英雄";
	string t1="出来";

	s1=s1+"哪里";
	//cout<<s1<<endl;
	
	s1=s1+t1;
	cout<<s1<<endl;

	s1=s1+';';
	cout<<s1<<endl;



	string s2="夜深";
	string t2="写算法";
	s2+="人静";

	cout<<s2<<endl;

	string s3="英雄";
	string t3="联盟";

	s3.append(s3);
	s3.append("5201314",3);

	s3.append("5201314",3,4);

	cout<<s3<<endl;
	
	string s4="英雄编程";
	s4.push_back('6');
	s4.push_back('6');
	s4.push_back('6');
	s4.push_back('6');
	cout<<s4<<endl;

	return 0;


}
